package daos

import java.util.List
import model.Pais

class MapaMundi implements Operations<Pais>{

	@Property val  List<Pais> paises = newArrayList
	
	override quitar(Pais t) {
		if(paises.size > 0)
			this.paises.remove(t)

	}
	
	override agregar(Pais t) {
			this.paises.add(t)
	}

	override buscar(String t) {
		//print(this.paises)
		this.paises.filter[it.nombre == t].get(0)
		//print(this.paises)
	}
	
	
}